package com.lg.mengbase.api;

import com.lg.mengbase.entity.FixInfo;
import com.lg.mengbase.entity.ResponseBase;

import io.reactivex.Observable;
import retrofit2.http.Query;

/**
 * Created by ligang on 2017/5/30.
 * description：
 */

public class ApiClient extends ApiManager implements ApiService{
    private static ApiClient apiClient;
    private ApiClient() {
    }
    public static ApiClient instance(){
        if(apiClient == null){
            synchronized (ApiClient.class){
                if(apiClient == null){
                    apiClient = new ApiClient();
                }
            }
        }
        return apiClient;
    }
    @Override
    public Observable<ResponseBase<FixInfo>> checkFix(@Query("phoneBrand") String phoneBrand, @Query("phoneModel") String phoneModel, @Query("deviceId") String deviceId, @Query("sdkVersionCode") String sdkVersionCode, @Query("appVersionCode") String appVersionCode) {
        return apiService.checkFix(phoneBrand,phoneModel,deviceId,sdkVersionCode,appVersionCode);
    }
}
